export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
    ],
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/admin',
    name: 'admin',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      {
        path: '/admin/sub-page',
        name: 'sub-page',
        icon: 'smile',
        component: './Welcome',
      },
    ],
  },
  {
    name: 'list.table-list',
    icon: 'table',
    path: '/list',
    component: './TableList',
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    name: 'producemanager',
    icon: 'smile',
    routes: [
      {
        name: 'producemanager.linespage',
        icon: 'smile',
        hideInMenu: true,
        path: '/producemanager/linespage',
        component: './produceManager/LinesPage',
      },
      {
        name: 'producemanager.sewinglines',
        icon: 'smile',
        path: '/producemanager/sewinglines',
        component: './produceManager/SewingLines',
      },
      {
        name: '裁床维护',
        icon: 'smile',
        path: '/producemanage/cutmanage',
        component: './produceManager/CutManage',
      },
      {
        name: '捆扎工序维护',
        icon: 'smile',
        path: '/producemanage/stepgroup',
        component: './produceManager/StepGroup',
      },
      {
        name: '工位管理',
        icon: 'smile',
        path: '/producemanager/gongweimanager',
        component: './produceManager/GongweiManager',
      },
      {
        name: '多数据折叠',
        icon: 'smile',
        path: '/producemanager/testtree',
        component: './produceManager/TestTree',
      },
      {
        name: '树形表格',
        icon: 'smile',
        path: '/producemanager/rowspage',
        component: './produceManager/RowsPage',
      },
      {
        name: 'Gantt页面',
        icon: 'smile',
        path: '/testpage/ganttmap',
        component: './TestPage/GanttMap',
      },
      {
        name: '生产计划管理',
        icon: 'smile',
        path: '/planmanage/productionplans',
        component: './PlanManage/ProductionPlans',
      },
      {
        name: '作废',
        icon: 'smile',
        path: '/planmanage/productionplan',
        component: './PlanManage/ProductionPlan',
      },
      {
        name: '排裁床',
        icon: 'smile',
        path: '/planmanage/makecut',
        component: './PlanManage/MakeCut',
      },
      {
        name: '撤单确认',
        icon: 'smile',
        path: '/producemanager/cancelorders',
        component: './produceManager/CancelOrders',
      },
      {
        name: '查询表格',
        icon: 'smile',
        path: '/producemanager/testcancelorder',
        component: './produceManager/TestCancelOrder',
      },
    ],
  },
  {
    name: '折叠table',
    icon: 'smile',
    path: '/treetable',
    component: './TreeTable',
  },
  {
    component: './404',
  },
];
